package ma.projet.beans;

import java.util.Date;
import javax.faces.event.ActionEvent;

/***********************************************************************
 * Module:  Patient.java
 * Author:  Omar
 * Purpose: Defines the Class Patient
 ***********************************************************************/

/** @pdOid c7f1c3bc-36fb-4058-b13e-6096f4197e11 */
public class Patient extends Personne {
	/** @pdOid a816ad4d-0f37-46e5-ae44-e02f7f59ce87 */
	private String profession;
	/** @pdOid 5af98bea-604d-4953-a4f3-80f81973f3dc */
	private String assurance;
	/** @pdOid 1248c849-4a59-4b72-a85a-196287b3f7fe */
	private String cin;

	public Patient(String nom, String prenom, String adresse, String tel,
			java.lang.String sexe, Date datenaissance, String etatcivil,
			String profession, String assurance, String cin) {
		super(nom, prenom, adresse, tel, sexe, datenaissance, etatcivil);
		this.profession = profession;
		this.assurance = assurance;
		this.cin = cin;
	}

	public Patient(String nom, String prenom, String adresse, String tel,
			java.lang.String sexe, Date datenaissance, String etatcivil) {
		super(nom, prenom, adresse, tel, sexe, datenaissance, etatcivil);
	}

	public Patient() {
		super();
	}

	public String getProfession() {
		return profession;
	}

	public void setProfession(String profession) {
		this.profession = profession;
	}

	public String getAssurance() {
		return assurance;
	}

	public void setAssurance(String assurance) {
		this.assurance = assurance;
	}

	public String getCin() {
		return cin;
	}

	public void setCin(String cin) {
		this.cin = cin;

	}

	public void savePatient(ActionEvent actionEvent) {
		System.out.println(this.getSexe() + " " + etatcivil);

	}

	public java.lang.String getAdresse() {
		return adresse;
	}

	public void setAdresse(java.lang.String adresse) {
		this.adresse = adresse;
	}

	public Date getDatenaissance() {
		return datenaissance;
	}

	public void setDatenaissance(Date datenaissance) {
		this.datenaissance = datenaissance;
	}

	public java.lang.String getEtatcivil() {
		return etatcivil;
	}

	public void setEtatcivil(java.lang.String etatcivil) {
		this.etatcivil = etatcivil;
	}

	public java.lang.String getNom() {
		return nom;
	}

	public void setNom(java.lang.String nom) {
		this.nom = nom;
	}

	public java.lang.String getPrenom() {
		return prenom;
	}

	public void setPrenom(java.lang.String prenom) {
		this.prenom = prenom;
	}

	public java.lang.String getSexe() {
		return sexe;
	}

	public void setSexe(java.lang.String sexe) {
		this.sexe = sexe;
	}

	public java.lang.String getTel() {
		return tel;
	}

	public void setTel(java.lang.String tel) {
		this.tel = tel;
	}

	@Override
public String toString() {return  getNom() + " "+ getPrenom() ;
}}